package com.hades.example.java.refactoring.after.c11.c11_10_form_template_method;

public class Example {
    public static void main(String[] args) {
        Customer custom = new Customer("Stu");
        custom.addRental(new Rental(new Movie("move_1", Movie.REGULAR), 10));
        custom.addRental(new Rental(new Movie("move_2", Movie.NEW_RELEASE), 20));
        custom.addRental(new Rental(new Movie("move_3", Movie.CHILDRENS), 5));
        String text = custom.statement();
        String html = custom.htmlStatement();
        System.out.println(text);
        System.out.println(html);
    }
}
